package flex.cc.sms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import flex.cc.order.manage.dto.order.OrderMainEntity;
import flex.cc.sms.dto.SmsInfoEntity;

import java.util.Map;

/**
 * @author wkangle
 * @className SmsInfoService
 * @description 短信信息记录service
 * @time 2021-10-21 09:38:24
 */
public interface SmsInfoService extends IService<SmsInfoEntity> {

    /**
     * @param smsInfoEntity
     * @return
     * @description 添加一条记录
     * @author wkangle
     * @time 2021-10-21 09:36:22
     * @exception/throws
     */
    int insert(SmsInfoEntity smsInfoEntity);

    /**
     * @param params 查询条件
     * @return
     * @description 根据查询条件查询短信信息记录
     * @author wkangle
     * @time 2021-10-21 09:37:20
     * @exception/throws
     */
    SmsInfoEntity getOneByParams(Map<String, Object> params);

    /**
     * @param smsInfoEntity
     * @return
     * @description 更新
     * @author wkangle
     * @time 2021-10-21 09:37:13
     * @exception/throws
     */
    int update(SmsInfoEntity smsInfoEntity);

    /**
     * @param orderMainEntity 服务单
     * @return
     * @description 发送短信
     * @author wkangle
     * @time 2021/10/21 0021 10:40
     * @exception/throws
     */
    Map<String, Object> send(OrderMainEntity orderMainEntity);

}
